home *** CD-ROM | disk | FTP | other *** search
- /*
- ** MacWT -- a 3d game engine for the Macintosh
- ** © 1995, Bill Hayden and Nikol Software
- ** Free for non-commercial use - address questions to the e-mail address below
- **
- ** Mail: afn28988@freenet.ufl.edu (Bill Hayden)
- ** MacWT FTP site: ftp.circa.ufl.edu/pub/software/ufmug/mirrors/LocalSW/Hayden/
- ** WWW Page: http://grove.ufl.edu:80/~nikolsw
- **
- ** All of the above addresses are due to changes sometime in 1996, so stay tuned
- **
- ** based on wt, by Chris Laurel
- **
- ** This program is distributed in the hope that it will be useful,
- ** but WITHOUT ANY WARRANTY; without even the implied warranty of
- ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
- */
-
-
-
- #ifndef TABLE_H_
- #define TABLE_H_
-
- #include <stdlib.h>
-
- typedef struct {
- Boolean fixed_size;
- size_t entry_size;
- short current_entries;
- short max_entries;
- void *table;
- } Table;
-
-
- #define TABLE_ELEMENTS(t, type) ((type *) (t)->table)
- #define TABLE_SIZE(t) ((t)->current_entries)
-
- extern Table *new_table(size_t entry_size, short table_size);
- extern short add_table_entry(Table *t, void *entry);
-
- #endif
-